const englishLessons = [
    {
        title: "Good afternoon",
        content: `Linda: Good afternoon! My name's Linda.
 Are you Helen?
Helen: Yes, I am. Nice to meet you, Linda.
Linda: Nice to meet you, too. What's her name?
Helen: She's Jane.
Linda: Is he Jack?
Helen: No, he isn't. His name's Mike.`
    },
    {
        title: "Good morning",
        content: `Sally: Good morning, Jane.
Jane: Good morning, Sally.
Sally: Oh, Jane, this is my sister Kate.
 Kate, this is my friend Jane.
Kate: Nice to meet you, Jane.
Jane: Nice to meet you, too. Are those your parents?
Kate: Yes, they are.
Jane: And who's he?
Sally: He's my brother, Paul.
Jane: Oh, I see. Well, have a good day!
Sally/Kate: Thanks! You, too. Bye!`
    },
    {
        title: "My Family",
        content: `My Family
Hi, I'm Jenny. 
Here are two nice photos of my family. 
My grandfather and grandmother are in the first photo.
These are my parents, Alan and Mary.
In the next picture are my brothers, Bob and Eric. 
These two girls are my sister Cindy and my cousin Helen.
Coco is in my family, too.`
    },
    {
        title: "Hi, Anna. Are these your pencils?",
        content: `Teacher: Hi, Anna. Are these your pencils?
Anna: No, they're Bob's.
Teacher: And is this his green pen?
Anna: No, it isn't. Thee blue pen is his.
Teacher: What about this dictionary?
Anna: It's Helen's. And the green pen is hers, too.
Teacher: And the eraser? Is that yours?
Anna: Yes, it is.
Teacher: Thank you for your help, Anna.
Anna: You're welcome.`
    },
    {
        title: "Come on, Jack!",
        content: `Mom: Come on, Jack!
Jack: Oh, no! Where's my bag?
Mom: Hmm ... is it on your desk?
Jack: No. And it's not under the chair.
Mom: Oh! It's on the sofa.
Jack: Thank you, Mom. Er ... where's the map?
Mom: I think it's in your grandparents' room.
Jack: Yes, it's on their bed! And my hat?
Mom: It's on your head!
Jack: Oh, yeah! Haha!`
    },
    {
        title: "Hey, Helen, let's go!",
        content: `I'm Kate, and my sister is Gina. 
I'm tidy, but Gina is not. 
In our room, my books and tapes are in the bookcase. 
My keys are in my schoolbag. 
I have a clock. It's on the desk. 
Gina's books are everywhere — on her
bed, on the sofa and under
the chair. The white model plane is hers. 
It's under the desk. 
"Where are my keys? Where's my ruler? Where's my schoolbag?" 
Gina always asks.`
    },
    {
        title: "Hey, Helen, let's go!",
        content: `Cindy: Hey, Helen, let's go! We're late!
Helen: OK.
Cindy: Do you have the baseball?
Helen: Yes, I do. It's in my bag.
Cindy: And where's our baseball bat?
Helen: Bill has it.
Cindy: Oh, yeah. And do you have
your jacket?
Helen: Oh, no, I don't. It's on the
chair. Let me get it.
Cindy: And your hat, too!
Helen: OK, I have my jacket and hat. Let's go!`
    },
    {
        title: "Do You Have a Soccer Ball?",
        content: `Do You Have a Soccer Ball?
Frank Brown: I don't have a soccer ball, but my brother Alan does.
We go to the same school and we love soccer. 
We play it at school with our friends. It's relaxing.
Gina Smith: Yes, I do. I have two soccer balls, three volleyballs, 
four basketballs and five baseballs and bats. 
I love sports, but I don't play them — I only watch them on TV!
Wang Wei: No, I don't. Soccer is difficult.
I like ping-pong. It's easy for me. 
I have three ping-pong balls and two ping-pong bats.
After class, I play ping-pong with my classmates.`
    },
    {
        title: "Hey, John's birthday dinner",
        content: `Jack: Hey, John's birthday dinner is next week. Let's think about the food.
Tom: Sure. How about burgers, vegetable salad, and some fruit?
Bill: Sounds good. John likes hamburgers.
Jack: Oh, I don't like salad.
Bill: But John likes salad, and it's his birthday.
Jack: Yes, you're right. What about the fruit?
Tom: I think John likes strawberries and apples.
Bill: OK. Let's have strawberries and apples then.`
    },
    {
        title: "Sports Star Eats Well",
        content: `Sports Star Eats Well!
David asks the volleyball star,
Cindy Smith, about her eating habits.
David: Hello, Cindy. What do you like for breakfast?
Cindy: I love fruit. I think it's healthy.
David: OK. So what fruit do you like? 
Do you like bananas?
Cindy: Well, I don't like bananas.
But I like oranges and apples.
David: What about lunch? Do you like salad?
Cindy: Yes, I really like it.
David: Hmm ... and do you like hamburgers for dinner?
Cindy: Oh, no, they're not healthy. 
I like chicken for dinner.
David: OK, well, one last question — do you eat
ice-cream after dinner?
Cindy: Er ... I like ice-cream ... but I don't eat it. 
I don't want to be fat.`
    },
    {
        title: "Can I help you?",
        content: `Woman: Can I help you?
Mary: Yes, please. I need a sweater for school.
Woman: OK. What color do you want?
Mary: Blue.
Woman: How about this one?
Mary: It looks nice. How much is it?
Woman: Nine dollars.
Mary: I'll take it. How much are those yellow socks?
Woman: Two dollars for one pair and
three dollars for two pairs.
Mary: Great! I'll take two pairs.
Woman: Here you are.
Mary: Thank you.
Woman: You're welcome.`
    },
    {
        title: "Mr. Cool's Clothes Store",
        content: `Mr. Cool's Clothes Store
Come and buy your clothes at our great sale! 
We sell all our clothes at very good prices.
Do you like sweaters? We have green sweaters for only 15! 
Yellow sweaters are only 12! 
Do you need trousers? For boys, we have black trousers for only 22. 
And shorts are only 16! For girls, we have skirts in purple for only 20.
How much are our jackets? Only 30! And we have black shoes for only 28.
Socks are only 2 for three pairs! Come to Mr. Cool's Clothes Store now!`
    },
    {
        title: "Hi, Alan",
        content: `Bill: Hi, Alan. Happy birthday!
Alan: Thank you, Bill.
Bill: So, how old are you, Alan?
Alan: I'm twelve. How old are you?
Bill: I'm thirteen.
Alan: When is your birthday?
Bill: My birthday is in August.
Alan: Well, do you want to come to my birthday party?
Bill: Oh, yes. When is it?
Alan: At three this afternoon.
Bill: OK, great. See you!`
    },
    {
        title: "Dear students,",
        content: `Dear students,
We have some interesting and fun things for you this term. 
On September 21st, we have a school trip in the afternoon.
October is a great month. On the 12th and the
15th, we have two ball games, soccer and volleyball.
School Day is on October 22nd. Your parents can
come to our school. Next month, we have an art festival. 
It's on November 3rd. We have an English party on November 30th. 
And on December 3rd, we have a book sale in the school library.
This is a really busy term! Have a good time!`
    },
    {
        title: "Hi, Bob",
        content: `Frank: Hi, Bob. How's your day?
Bob: It's OK. I like Monday because I have P.E. and history. 
They're my favorite subjects.
Frank: Who's your P.E. teacher?
Bob: Mr. Hu. He always plays games with us.
Frank:That's great! But why do you like history? It's boring.
Bob: Oh, I think history is interesting. What's your favorite day?
Frank: Friday.
Bob: Why?
Frank: Because the next day is Saturday!
Bob: Haha! That's for sure. I like Friday, too.`
    },
    {
        title: "Dear Jenny",
        content: `Dear Jenny,
I am very busy on Friday. At 8:00 I have math.
It is not fun. The teacher says it is useful, 
but I think it is difficult. Then at 9:00 I have science. 
It is difficult but interesting. At 10:00 I have history. 
After that, I have P.E. at 11:00. It is easy and fun. 
Lunch is from 12:00 to 1:00, and after that we have Chinese. 
It is my favorite subject. 
Our Chinese teacher, Mrs. Wang, is great fun. My classes finish at 1:50, but after that I
have an art lesson for two hours. It is really relaxing!
How about you? When are your classes? What is your favorite subject?
Your friend,
Yu Mei`
    },
    {
        title: "months of the year 1",
        content: `cinema cinema cinema cinema cinema cinema
january january january january january january january 
money money money money money money money money money money 
cinema january february march april may
june july august september october
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december`
    },
    {
        title: "months of the year 2",
        content: `cinema cinema cinema cinema cinema cinema
january january january january january january january 
money money money money money money money money money money 
cinema january february march april may
june july august september october
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december`
    },
    {
        title: "months of the year 3",
        content: `cinema cinema cinema cinema cinema cinema
january january january january january january january 
money money money money money money money money money money 
cinema january february march april may
june july august september october
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december`
    },
    {
        title: "months of the year 4",
        content: `cinema cinema cinema cinema cinema cinema
january january january january january january january 
money money money money money money money money money money 
cinema january february march april may
june july august september october
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december
september september september september september september september 
october october october october october october october october 
november december december december december december december`
    },
];

function parseLinesFromEnglishText(content) {
    return content.split('\n').map(v => {
        return v.split(/(\s+|[,!.:?"/])/).filter(v => v && ![' '].includes(v)).map(m => /[\w]/.test(m) ? {
            yin: m,
            xing: m
        } : {yin: '', xing: m})
    })
}

const enData = englishLessons.reverse().map(v => {
    const {content, title} = v;
    return {
        title,
        lines: parseLinesFromEnglishText(content)
    }
});
export const poetryData = ['0b', '1a', '1b', '2a', '2b', '3a', '3b'].reduce(async (acc, cur) => {
    const tmp = await import('../data/' + cur + '.json');
    // return acc.then(v => [...v, ...tmp.default]);
    return acc.then(v => [...v]);
}, Promise.resolve([...enData]));
